#include "WinRestartZigbeeCmd.h"

WinRestartZigbeeCmd::WinRestartZigbeeCmd(QObject *parent) :
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::PointProtocol;
    this->m_functionCode = FunctionCode;
    this->m_isSucceed = false;
}

Package WinRestartZigbeeCmd::toPackage()
{
    Package package;
    QByteArray body;
    body.append(m_isSucceed);
    package.setBody(body);
    package.setFunction(FunctionCode);
    return package;
}

void WinRestartZigbeeCmd::unPackage(Package package)
{
    Q_UNUSED(package);

}
bool WinRestartZigbeeCmd::isSucceed() const
{
    return m_isSucceed;
}

void WinRestartZigbeeCmd::setIsSucceed(bool isSucceed)
{
    m_isSucceed = isSucceed;
}

